package com.gagakuai.bpm.rpcservice.openfeign;



import com.gagakuai.bpm.domian.dto.response.ResponseStatusDto;
import com.gagakuai.bpm.domian.dto.scheduleTask.BPMUserVo;
import com.gagakuai.bpm.domian.entity.camuda.TaskInfoEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class UserHttpApiFailBackImpl implements UserHttpApi{

    @Override
    public ResponseStatusDto<List<BPMUserVo>> getSystemUserInfoList() {
        return ResponseStatusDto.failure("远程调用异常");
    }

    @Override
    public ResponseStatusDto<Void> updateProcId(String businessId) {
        return ResponseStatusDto.failure("流程走完，远程调用异常");
    }

    @Override
    public ResponseStatusDto<Void> updateProcActivityInfos(String businessId, List<TaskInfoEntity> taskInfoEntityList) {
        return ResponseStatusDto.failure("完成任务回写下一个节点信息，远程调用异常");
    }

    @Override
    public ResponseStatusDto<Void> copyData(String businessId) {
        return ResponseStatusDto.failure("自动任务，回调业务复制数据接口失败");
    }

    @Override
    public ResponseStatusDto<Void> UpdateSecurityRisks(String businessId) {
        return ResponseStatusDto.failure("自动任务，调用更新安全隐患接口失败");
    }

    @Override
    public ResponseStatusDto<Void> backStartSubProcInfo(String businessId, List<String> listBusinessIdAndProcInstId) {
        return ResponseStatusDto.failure("启动流程后，调用回写启动的子流程信息失败");
    }

    @Override
    public ResponseStatusDto<Void> autoGenerateNonconformity(String businessId) {
        return ResponseStatusDto.failure("调用生成不符合项接口失败");
    }
}
